package com.fgba.express.data.mapstruct;

import com.fgba.express.core.mapstruct.BaseStruct;
import com.fgba.express.data.dto.ExpressCompanyDto;
import com.fgba.express.data.entity.ExpressCompany;
import com.fgba.express.data.search.ExpressCompanySearch;
import org.mapstruct.Mapper;
import org.mapstruct.NullValuePropertyMappingStrategy;

import java.util.List;

/**
 * 快递员实体和快递员Model之间的对象转换
 */
@Mapper(componentModel = "spring", nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.IGNORE)
public interface ExpressCompanyStruct extends BaseStruct<ExpressCompany, ExpressCompanyDto, ExpressCompanySearch> {
    @Override
    ExpressCompany entityConvertDto(ExpressCompanyDto dto);

    @Override
    ExpressCompanyDto dtoConvertEntity(ExpressCompany entity);

    @Override
    List<ExpressCompanyDto> dtoConvertEntity(List<ExpressCompany> entityList);
}
